import {
  request,
} from "@rabbit.do/rabbit";
// import {
//   ZCQ_URL
// } from '@/config';
// console.log(ZCQ_URL, "0909090");
// 获取渠道管理列表
export const getChannelData = (data) => request({
  url: "/swan/operation/channel/find/page",
  data,
  baseurl: ZCQ_URL,
});

// 新增渠道管理数据
export const createChannelData = (data) => request({
  url: "/swan/operation/channel/create",
  data,
});

// 修改渠道管理数据
export const updateChannelData = (data) => request({
  url: "/swan/operation/channel/update",
  data,
});

// 删除渠道管理或者提成规则的数据
export const deleteChannelData = (data, url) => request({
  url,
  data,
});

// // 获取提成规则列表(部分)
// export const getRulesData = (data) => request({
//   url: "/swan/operation/commission/rule/find/page",
//   data,
// });

// 获取提成规则列表(全部)
export const allRulesData = () => request({
  url: "/swan/operation/commission/rule/find/all",
});

// 获取提成规则列表(一条的)
export const OneRulesData = (data) => request({
  url: "/swan/operation/commission/rule/get",
  data,
});

// 新增/修改提成规则/swan/operation/commission/rule/create
export const createRulesData = (data, url) => request({
  url,
  data,
});
